#ifndef BRUSH_H
#define BRUSH_H

#include <QObject>
#include <QGraphicsWidget>
#include <QGraphicsItem>
#include <QDebug>
#include <QColor>
#include <QPainter>

class Brush : public QGraphicsWidget
{
    Q_OBJECT

public:
    explicit Brush(QGraphicsItem* parent = 0);

    //these allow elts to be drawn
    QRectF boundingRect() const;
    QPainterPath shape() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
               QWidget *widget);

    void setWidth( float newWidth );
    void setHeight( float newHeight );

private:

    QColor penColor;
    QColor brushColor;

    float width;
    float height;

};

#endif // BRUSH_H
